package com.hx.springboot1.dao;

import com.hx.springboot1.pojo.entity.TabCollege;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Author: hx
 * Date: 2021-05-14 16/17
 * Description: Nothing else
 */
@Repository
@Mapper
public interface CollegeDao {
    @Select("select * from tab_college where college_id = #{id}")
    TabCollege selectById(int id);
    @Select("select * from tab_college")
    List<TabCollege> selectAllCollege();
}
